<template>
    <Org
            single-name="部门"
            del-message="此操作将永久删除该部门及下属部门, 是否继续?"
            :list-url="prefix + '/list'"
            :users-url="prefix + '/getUsers'"
            :add-user-url="prefix + '/addUser'"
            :del-user-url="prefix + '/delUser'"
            :save-url="prefix + '/save'"
            :del-url="prefix + '/del'"
            :search-user-url="userPrefix + '/list'"
            :export-url="prefix + '/export'"
            :import-url="prefix + '/imt'"
            tag-key="depTags"
            :allow-children="true"
            btn-root-text="添加根部门"
            :types="types"
    />
</template>

<script>
    import Org from "../components/Org";

    export default {
        props:{
            prefix: {
                type: String,
                default: "/dep"
            },
            userPrefix: {
                type: String,
                default:  "/user"
            }
        },
        components: {Org},
        data() {
            return {
                types:{
                    "DEP":"用户",
                    "MANAGER":"主管",
                    "TOP_MANAGER0":"上级主管",
                    "TOP_MANAGER1":"上级分管",
                },
            }
        }
    }
</script>